package top.ljlgithub.domain;

/**
 * @ClassName
 * @Description TODO
 * @Author L1470
 * @Date 2021/3/22 11:06
 * @Version 1.0
 **/
public class PageConditionSql {
    private int currentPage;//当前页码
    private int startIndex;
    private int rows;
    private QueryCondition condition;

    public PageConditionSql() {
    }

    @Override
    public String toString() {
        return "PageConditionSql{" +
                "currentPage=" + currentPage +
                ", startIndex=" + startIndex +
                ", rows=" + rows +
                ", condition=" + condition +
                '}';
    }

    public int getCurrentPage() {
        return currentPage;
    }

    public void setCurrentPage(int currentPage) {
        this.currentPage = currentPage;
    }

    public int getStartIndex() {
        return startIndex;
    }

    public void setStartIndex(int startIndex) {
        this.startIndex = startIndex;
    }

    public int getRows() {
        return rows;
    }

    public void setRows(int rows) {
        this.rows = rows;
    }

    public QueryCondition getCondition() {
        return condition;
    }

    public void setCondition(QueryCondition condition) {
        this.condition = condition;
    }

    public PageConditionSql(int currentPage, int startIndex, int rows, QueryCondition condition) {
        this.currentPage = currentPage;
        this.startIndex = startIndex;
        this.rows = rows;
        this.condition = condition;
    }
}
